home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 197 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: weck.brokersys.com!not-for-mail
  2. From: jguthrie@brokersys.com
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: Hungarian notation
  5. Date: 2 Jan 1996 16:03:45 -0600
  6. Organization: Executel/IBS Internet Services
  7. Message-ID: <4cca41$3l5@weck.brokersys.com>
  8. References: <30C40F77.53B5@swsbbs.com> <marnoldDJEvtJ.1Lx@netcom.com> <4aleun$jlk@ns.RezoNet.NET> <marnoldDJMDBG.CFz@netcom.com> <4asnkr$7b0@solutions.solon.com> <4ath75$e7i@barnacle.iol.ie> <4b4kij$svt@news.microsoft.com> <dewar.819489496@schonberg> <4bd <4cc2b2$11jq@navajo.gate.net>
  9. NNTP-Posting-Host: weck.brokersys.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Michael Feathers (feathers@gate.net) wrote:
  13.  
  14. : Where I work, all the truly portable code is written in terms of 
  15. : typedefs.  We alter the typedefs in an include file to alter data
  16. : sizes and performance characeristic, and our variant of Hungarian
  17. : uses these type names.
  18.  
  19. Why don't you just abandon the type declarations completely and use a
  20. prefix on the variable names to define the type?  Hey, wait a minute.
  21. I've seen this BEFORE!  What was it called?  FORTRAN, wasn't it?  And
  22. how about how those old microcomputer BASICs used suffixes to determine
  23. types?
  24.  
  25. The more things change, the more they stay the same.
  26.  
  27. My attitude remains the same:  Any naming convention works better than
  28. none, but embedding the type in the name is probably a bad idea.
  29.  
  30.